<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
	<script>
		let arr = ['张三','李遂','王五','赵六']
		console.log(arr)
		// 数组转换为字符串
		console.log('数组换为字符串')
		console.log(arr.join())
		console.log(arr.join(''))
		console.log(arr.join('#'))

		// 把字符串转换为数组
		let str = '张三李遂王五赵六'
		let str2 = '张三,李遂,王五,赵六'
		console.log('将字符串转换为数组')
		// split(转化规则)
		console.log(str.split(),22)
		console.log(str2.split(','),23)
	</script>
	
</body>
</html>